/**
 *  Copyright ${date} Matthew Cline
 *
 *  Licensed under the Apache License, Version 2.0 (the "License");
 *  you may not use this file except in compliance with the License.
 *  You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
package factbook;

import java.io.IOException;
import java.net.MalformedURLException;

/**
 * Interface that defines a source to use for the underlying Factbook data.
 * 
 * @author Matthew Cline
 *
 */
public interface FactbookSource {
	
	/**
	 * 
	 * @param fips The <a href="http://en.wikipedia.org/wiki/List_of_FIPS_country_codes">FIPS code</a> of the country for which you want the data.
	 * @param field The data field that you want. I would suggest look at one of the <a href="https://www.cia.gov/library/publications/the-world-factbook/geos/us.html">Factbook pages</a> to see the available options.
	 * @return result The value of the requested data field.
	 * @throws MalformedURLException
	 * @throws IOException
	 */
	public String get(String fips, String field) throws MalformedURLException, IOException;
}
